<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>7.数组方法</title>
	</head>
	<body>
		<script type="text/javascript" >
			let arr = [1,3,5,7,9,11,23,67]

			// filter
			/* let result = arr.filter((item,index,arr)=>{
				return item > 5
			}) */

			// forEach
			/* arr.forEach((item,index,arr)=>{
				// 随便写逻辑，但没必要写返回值了
			}) */

			arr.push(999)
			console.log(arr.push === Array.prototype.push)
		</script>
	</body>
</html>